FieldType

enum FieldType : ProtocolMessageEnum

Protobuf enum FieldType

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Always generate a callback field.
FT_CALLBACK = 1;
Link copied to clipboard
Automatically decide field type, generate static field if possible.
FT_DEFAULT = 0;
Link copied to clipboard
Ignore the field completely.
FT_IGNORE = 3;
Link copied to clipboard
Legacy option, use the separate 'fixed_length' option instead
FT_INLINE = 5;
Link copied to clipboard
Always generate a dynamically allocated field.
FT_POINTER = 4;
Link copied to clipboard
Generate a static field or raise an exception if not possible.
FT_STATIC = 2;

Functions

Link copied to clipboard
open fun forNumber(value: Int): Nanopb.FieldType
Link copied to clipboard
open fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
open fun internalGetValueMap(): Internal.EnumLiteMap<Nanopb.FieldType>
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): Nanopb.FieldType
open fun valueOf(value: Int): Nanopb.FieldType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.